Chris Pollett > Old Classes >
CS185c

( Print View )

Grades: [Sec2]

Submit: [Sec2]

Course Info:
  [Texts & Links]
  [Topics]
  [Grading]
  [HW Info]
  [Exam Info]
  [Regrades]
  [Honesty]
  [Announcements]

HW Assignments:
  [Hw1]  [Hw2]  [Hw3]
  [Hw4]  [Hw5]

Practice Exams:
  [Mid1]  [Mid2]  [Final]

                            












CS185c Fall 2002Practice Midterm 2

The practice midterm is below. Here are some facts about the actual midterm: (a) The midterm will be in class . (b) It is closed book, closed notes. Nothing will be permitted on your desk except your pen (pencil) and test. (c) You should bring photo ID. (d) There will be more than one version of the test. Each version will be of comparable difficulty. (e) If your cell-phone or beeper goes off you will be excused from the test at that point and graded on what you have done till your excusal. (f) One problem (less typos) on the actual test will be from the practice test.

1. Give the PilRC code for creating a menu resource with one pulldown
on it with the three menuitems cut, paste, and copy on it.

2. Explain the steps needed to open a simple modal dialog box and get
the user's response using FrmDoDialog.

3. In PalmOS terminology what is the draw window and what is the active 
window?

4. Suppose my application wants to determine whether or not it is running
on a Palm VII. Explain how it could do this.

5. Give the code need to set a PalmOS alarm for two minutes into the
future. Explain how to detect when this alarm goes off and how to make a
beep at this point.

6. Suppose someone clicks(+ releases) on an item in a table on some form.
If we want to handle such an event what event type should we look for.
How can we extract which item in the table was clicked from the event
structure?

7. Let table be an object pointer to a PalmOS table. Explain how to
set the 2 row 3 column of this table to be a checkbox and to mark this 
checkbox as checked.

8. Explain how to find the last backup date of a PalmOS database.

9. Explain how to insert a new record into an existing PalmOS database
accoriding to its sorted position.

10. What is an application info block. How do we read and set it?